using System.Linq;

namespace Common.Dao
{
    /// <summary>
    /// Linq query delegate
    /// </summary>
    /// <param name="queryable">
    /// Queryable instance returned from Linq for Hibernate Extension
    /// </param>
    /// <param name="paras">
    /// Query parameters
    /// </param>
    /// <typeparam name="T">
    /// The entity type from Linq for Hibernate Extension
    /// </typeparam>
    /// <typeparam name="TRet">
    /// The actual return type of the query
    /// </typeparam>
    public delegate IQueryable<TRet> LinqQuery<T, TRet>(IOrderedQueryable<T> queryable, object[] paras);
}